
#ifndef _HW_PORT_DEF_
#define _HW_PORT_DEF_

/* timer port */
#define R_TCFG0		*((unsigned int *)IO_PIO2VIO(0x51000000)) /* Timer input clock Frequency=PCLK/{prescaler value + 1}/{divider value} */
#define	R_TCFG1		*((unsigned int *)IO_PIO2VIO(0x51000004)) /* 5-MUX & DMA mode selection register */
#define R_TCON		*((unsigned int *)IO_PIO2VIO(0x51000008)) /* Timer control register */
#define R_TCNTB		*((unsigned int *)IO_PIO2VIO(0x5100000C)) /* Timer 0 count buffer register */
#define R_TCMPB		*((unsigned int *)IO_PIO2VIO(0x51000010)) /* Timer 0 compare buffer register */
#define R_TCNTO0	*((unsigned int *)IO_PIO2VIO(0x51000014)) /* Timer 0 count observation register */
#define R_TCNTB1	*((unsigned int *)IO_PIO2VIO(0x51000018)) /* Timer 1 count buffer register */
#define R_TCMPB1	*((unsigned int *)IO_PIO2VIO(0x5100001C)) /* Timer 1 compare buffer register */
#define	R_TCNTO1	*((unsigned int *)IO_PIO2VIO(0x51000020)) /* Timer 1 count observation register */
#define R_TCNTB2	*((unsigned int *)IO_PIO2VIO(0x51000024)) /* Timer 2 count buffer register */
#define R_TCMPB2	*((unsigned int *)IO_PIO2VIO(0x51000028)) /* Timer 2 compare buffer register */
#define R_TCNTO2	*((unsigned int *)IO_PIO2VIO(0x5100002C)) /* Timer 2 count observation register */
#define R_TCNTB3	*((unsigned int *)IO_PIO2VIO(0x51000030)) /* Timer 3 count buffer register */
#define R_TCMPB3	*((unsigned int *)IO_PIO2VIO(0x51000034)) /* Timer 3 compare buffer register */
#define R_TCNTO3	*((unsigned int *)IO_PIO2VIO(0x51000038)) /* Timer 3 count observation register */
#define R_TCNTB4	*((unsigned int *)IO_PIO2VIO(0x5100003C)) /* Timer 4 count buffer register */
#define	R_TCNTO4	*((unsigned int *)IO_PIO2VIO(0x51000040)) /* Timer 4 observation register */

/* LED port */
#define R_GPBCON	*((unsigned int *)IO_PIO2VIO(0x56000010)) /* GPIO B Configure register */
#define R_GPBDAT	*((unsigned int *)IO_PIO2VIO(0x56000014)) /* GPIO B data register */
#define R_GPBUP		*((unsigned int *)IO_PIO2VIO(0x56000018)) /* GPIO B up register */

#endif /* _HW_PORT_DEF_ */

